package me.yiyou.meihua.data

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize

@Parcelize
@Entity(tableName = "save")
// 农历日期数据模型
data class SaveBean(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    @ColumnInfo(name = "shang")
    var shang: Int,
    @ColumnInfo(name = "xia")
    var xia: Int,
    @ColumnInfo(name = "dong")
    var dong: Int,
    @ColumnInfo(name = "time")
    var time: String ? = null,
    @ColumnInfo(name = "content")
    var content : String ? = null,
    @ColumnInfo(name = "type")
    var type: Int = 0
): Parcelable

/**
 * type 0: 年月日时
 * type 1: 随机
 */